// import 'package:flutter/material.dart';
// import 'package:flutter_roujiaosuo/requests/models/SupplyModel.dart';
// import 'package:flutter_roujiaosuo/requests/repository/repository.dart';
// import 'package:rxdart/subjects.dart';
// import './bloc_provider.dart';

// class SupplyBloc implements BlocBase {
//   final BehaviorSubject<Supply> supplyListSubject = BehaviorSubject<Supply>();
//   Stream<Supply> get supplyListStream => supplyListSubject.stream;

//   RoujiaosuoRepository repository = RoujiaosuoRepository();

//   Future _getList(int page) async {
//     Supply model = await repository.getSupplyList(page);
//     supplyListSubject.add(model);
//   }

//   @override
//   Future getData(int page) {
//     // TODO: implement getData
//     return _getList(page);
//   }

//   @override
//   void dispose() {
//     // TODO: implement dispose
//     supplyListSubject.close();
//   }
// }
